<?php $this->load->view("common/page_header");?>
<div id="body_main">
	<div id="admin_header">
		<?php $this->load->view('common/admin_header'); ?>
		<div class="top_cleft">
			<ul>
				<li><a href="###">小组管理</a></li>
			</ul>
			<div class="clear"></div>
		</div>
	</div>
	<div id="admin_content">
		<div id="admin_navigator">
			<ul class="navigator">
				<li><a href="/console/groups/group_verify">小组审批</a></li>
				<li><a href="/console/groups/allowed">审批通过</a></li>
				<li><a href="/console/groups/group_close">小组关闭</a></li>
				<li  class="current"><a href="/console/groups/closed">已关闭小组</a></li>
			</ul>
		</div>
		<div id="admin_body">
			<div class="margin_top15 margin_bottom10">
				<span class="bold">已经关闭的小组</span>
				<a href="javascript:void(0)" id="approve-submit" class="orange_button" style="float:right;#margin-top:-26px;">重新开放</a>
				<div class="clear"></div>
			</div>
			<form method="post" action="" id="groups-form">
			<table class="a_table">
				<tr>
					<th>选择</th>
					<th>小组名称</th>
					<th>组长</th>
					<th>组员人数</th>
					<th>关闭原因</th>
					<th>关闭时间</th>
				</tr>
				
				<?php if (!empty($groups)) {?>
				<?php foreach($groups as $group) { ?>
				<tr>
					<td><input type="checkbox" name="ids[]" value="<?php echo $group['id'];?>"/></td>
					<td><?php echo $group['title'];?></td>
					<td><a href="/user/show?user_id=<?php echo $group['created_by'];?>"><?php echo $group['nickname'];?></a></td>
					<td><?php echo $group['member_count'];?></td>
					<td><?php echo $group['feedback_type'];?></td>
					<td><?php echo $group['closed_time'];?></td>
				</tr>
				<?php } ?>
				<?php }?>
			</table>
			</form>
		</div>
		<div class="clear"></div>
	</div>
	<?php $this->load->view("common/footer");?>	
</div>
<script type="text/javascript">
$(document).ready(function(){
	$("#approve-submit").click(function() {
		$("#groups-form").submit();
	});
});
</script>	
<?php $this->load->view("common/page_footer");?>